+Thu Feb 12 23:55:08 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtktooltips.h:
+ * gtk/gtktooltips.c (gtk_tooltips_get_info_from_tip_window): New
+ function to improve the accessibility of tooltips. (#114851,
+ Padraig O'Briain)
+
+Thu Feb 12 23:16:04 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkcombobox.c (gtk_combo_box_popup):
+ * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make these public and
+ add docs. (#132847)
+
Thu Feb 12 11:05:16 2004 Manish Singh <yosh@gimp.org>
* gdk/x11/gdkproperty-x11.c (gdk_property_get): Assign xtype using
+Thu Feb 12 23:55:08 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtktooltips.h:
+ * gtk/gtktooltips.c (gtk_tooltips_get_info_from_tip_window): New
+ function to improve the accessibility of tooltips. (#114851,
+ Padraig O'Briain)
+
+Thu Feb 12 23:16:04 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkcombobox.c (gtk_combo_box_popup):
+ * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make these public and
+ add docs. (#132847)
+
Thu Feb 12 11:05:16 2004 Manish Singh <yosh@gimp.org>
* gdk/x11/gdkproperty-x11.c (gdk_property_get): Assign xtype using
+Thu Feb 12 23:55:08 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtktooltips.h:
+ * gtk/gtktooltips.c (gtk_tooltips_get_info_from_tip_window): New
+ function to improve the accessibility of tooltips. (#114851,
+ Padraig O'Briain)
+
+Thu Feb 12 23:16:04 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkcombobox.c (gtk_combo_box_popup):
+ * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make these public and
+ add docs. (#132847)
+
Thu Feb 12 11:05:16 2004 Manish Singh <yosh@gimp.org>
* gdk/x11/gdkproperty-x11.c (gdk_property_get): Assign xtype using
+Thu Feb 12 23:55:08 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtktooltips.h:
+ * gtk/gtktooltips.c (gtk_tooltips_get_info_from_tip_window): New
+ function to improve the accessibility of tooltips. (#114851,
+ Padraig O'Briain)
+
+Thu Feb 12 23:16:04 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkcombobox.c (gtk_combo_box_popup):
+ * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make these public and
+ add docs. (#132847)
+
Thu Feb 12 11:05:16 2004 Manish Singh <yosh@gimp.org>
* gdk/x11/gdkproperty-x11.c (gdk_property_get): Assign xtype using
+Thu Feb 12 23:55:08 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtktooltips.h:
+ * gtk/gtktooltips.c (gtk_tooltips_get_info_from_tip_window): New
+ function to improve the accessibility of tooltips. (#114851,
+ Padraig O'Briain)
+
+Thu Feb 12 23:16:04 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkcombobox.c (gtk_combo_box_popup):
+ * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make these public and
+ add docs. (#132847)
+
Thu Feb 12 11:05:16 2004 Manish Singh <yosh@gimp.org>
* gdk/x11/gdkproperty-x11.c (gdk_property_get): Assign xtype using
+Thu Feb 12 23:56:12 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtk-sections.txt: Add gtk_tooltips_get_info_from_tip_window.
+
Thu Feb 12 23:30:25 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtk-sections.txt: Add gtk_combo_box_{popup,popdown}.
gtk_tooltips_set_tip
gtk_tooltips_data_get
gtk_tooltips_force_window
+gtk_tooltips_get_info_from_tip_window
+
<SUBSECTION Standard>
GTK_TOOLTIPS
GTK_IS_TOOLTIPS
static GtkObjectClass *parent_class;
static const gchar *tooltips_data_key = "_GtkTooltipsData";
+static const gchar *tooltips_info_key = "_GtkTooltipsInfo";
GType
gtk_tooltips_get_type (void)
style = tooltips->tip_window->style;
widget = tooltips->active_tips_data->widget;
+ g_object_set_data (G_OBJECT (tooltips->tip_window), tooltips_info_key,
+ tooltips);
keyboard_mode = get_keyboard_mode (widget);
start_keyboard_mode (widget);
}
+/**
+ * gtk_tooltips_get_info_from_tip_window:
+ * @tip_window: a #GtkWindow
+ * @tooltips: the return location for the tooltips which are displayed
+ * in @tip_window, or %NULL
+ * @current_widget: the return location for the widget whose tooltips
+ * are displayed, or %NULL
+ *
+ * Determines the tooltips and the widget they belong to from the window in
+ * which they are displayed.
+ *
+ * This function is mostly intended for use by accessibility technologies;
+ * applications should have little use for it.
+ *
+ * Return value: %TRUE if @tip_window is displaying tooltips, otherwise %FALSE.
+ *
+ * Since: 2.4
+ **/
+gboolean
+gtk_tooltips_get_info_from_tip_window (GtkWindow *tip_window,
+ GtkTooltips **tooltips,
+ GtkWidget **current_widget)
+{
+ GtkTooltips *current_tooltips;
+ gboolean has_tips;
+
+ g_return_val_if_fail (GTK_IS_WINDOW (tip_window), FALSE);
+
+ current_tooltips = g_object_get_data (G_OBJECT (tip_window), tooltips_info_key);
+
+ has_tips = current_tooltips != NULL;
+
+ if (tooltips)
+ *tooltips = current_tooltips;
+ if (current_widget)
+ *current_widget = has_tips ? current_tooltips->active_tips_data->widget : NULL;
+
+ return has_tips;
+}
#define __GTK_TOOLTIPS_H__
#include <gtk/gtkwidget.h>
+#include <gtk/gtkwindow.h>
#ifdef __cplusplus
void _gtk_tooltips_toggle_keyboard_mode (GtkWidget *widget);
+gboolean gtk_tooltips_get_info_from_tip_window (GtkWindow *tip_window,
+ GtkTooltips **tooltips,
+ GtkWidget **current_widget);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */